package com.example.blog.web;

import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 你爹写的类
 * @description
 * @date 2019/11/20
 **/
//@Configuration
//public class WebMvcConfig implements WebMvcConfigurer {
//
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        //将所有/static/**访问都映射到classpath:/static/目录下
//        registry.addResourceHandler("/**")
//                .addResourceLocations("classpath:/static/");
//    }
//
//
//}
